package org.zn.mvcbase.response;

import org.zn.mvcbase.response.EasyUIDataGridBean;
import org.zn.mvcbase.response.ResponseMessage;

/**  
*
* @Company OBOR 
* @author 周楠
* @Description: 
* @date 2018年1月5日
*
*/
public class EasyUIDataGrid2MapMessage {
	
	
	public static  MapResponseMessage EasyUIDataGridMessage2MapResponseMessage(ResponseMessage rm) {
		
		EasyUIDataGridBean edg=(EasyUIDataGridBean) rm;
		
		MapResponseMessage mrm=new MapResponseMessage();
	
		mrm.put("total", edg.getTotal());
		mrm.put("rows", edg.getRows());
		mrm.put("status", edg.getStatus());
		return mrm;
		
	}

}
